package com.twu.biblioteca;

import org.junit.Test;

public class UserAccount {
    String userName;
    String password;
    String name;
    String emailID;
    String phoneNumber;

    public UserAccount()
    {
        userName="";
        password="";
        name="";
        emailID="";
        phoneNumber="";
    }
    public UserAccount(String userName,String password,String name,String emailID,String phoneNumber)
    {
        this.userName = userName;
        this.password=password;
        this.name=name;
        this.emailID=emailID;
        this.phoneNumber=phoneNumber;
    }
    public boolean validateUserAccount(String userName,String password)
    {
        if(this.userName.equals(userName)&&this.password.equals(password))
            return true;
        else
            return false;
    }
    public String displayUserAccountDetails()
    {
        String displayString="Hi "+userName+"\n";
        displayString+="\n Name : "+name;
        displayString+="\n Email-ID : "+emailID;
        displayString+="\n Phone Number : "+phoneNumber;

        return displayString;
    }
}
